<template>
  <div>
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <i class="el-icon-s-custom"></i><span>个人信息</span>
    <el-popconfirm title="确定修改个人信息吗？">
      <el-button style="float: right;margin: -8px;" type="primary" icon="el-icon-edit" circle slot="reference"></el-button>
    </el-popconfirm>
  </div>
  <div>   
    <div class="demonstration"><span >{{userPhone}}</span></div>  
    <el-form label-width="100px" size="medium">
     <el-form-item label="用户名">
        <el-input v-model="input3" type="text" placeholder="用户名" show-word-limit></el-input>
     </el-form-item> 
     <el-form-item label="密码">
       <el-input type="password" v-model="input" placeholder="请输入密码" show-password></el-input>
     </el-form-item>
    <el-form-item label="邮箱">
      <el-input v-model="input7" placeholder="邮箱"></el-input>
    </el-form-item>
    <el-form-item label="手机号">
      <el-input v-model="input8" type="text" placeholder="手机号码" maxlength="11" show-word-limit></el-input>
    </el-form-item>
     </el-form>
  </div>
</el-card>
  </div>
</template>

<script>
export default {
    name: 'PersonalCenter',
    data() {
      return {
        text: '',
        input3: '',
       
        input: '',
        input4: '',
       
        input7: '',
        input8: '',
      }
    },
    computed: {
    userPhone: function(){
      return sessionStorage.getItem('userPhone')
    }
  },
    methods: {
      handleEdit(index, row){
        console.log(index, row)
      }
      ,

      handleDelete(index, row) {
        console.log(index, row)
      },
    }
 


  }
</script>

<style>
  .text {
    font-size: 14px;
  }

  .item {
    margin-bottom: 18px;
  }

  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }
  .clearfix:after {
    clear: both
  }

  .box-card {
    width: 1000px;
  }
</style>